import request from "@/utils/request";

// 门店日报汇总导出
export function ExcleStoreToday(data) {
  return request({
    url: "/order/finance/store/day/total/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 门店日报表
export function ExcleStoreTodayDaily(query) {
  return request({
    url: "/order/total/daily/paper/exl",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 手工业绩导出
export function ExcleStoreHandWork(data) {
  return request({
    url: "/order/finance/user/performance/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 月营业额汇总导出
export function ExcleStoreTurnoverSum(data) {
  return request({
    url: "/order/finance/store/turnover/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 技师加钟点钟加班导出
export function ExcleStorePointClockk(data) {
  return request({
    url: "/order/finance/clock/ex",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 门店充值消费天 导出
export function getAccountDayExl(query) {
  return request({
    url: "/customer/account/total/page/day/exl",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 门店充值消费月 导出
export function getAccountMoonExl(query) {
  return request({
    url: "/customer/account/total/page/moon/exl",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 门店利润分析导出
export function getrevenueExl(data) {
  return request({
    url: "/order/finance/store/revenue/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 转卡列表 导出
export function exlStoreProfit(data) {
  return request({
    url: "/customer/card-transfer/page/admin/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 跨店消费导出
export function ExlTotalStorePay(data) {
  return request({
    url: "/order/total/pay/store/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 单店店长日报导出
export function SingleStoreToday(data) {
  return request({
    url: "/order/finance/store/day/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 获得类目金额分页导出
export function CategoryMoneyPageExl(data) {
  return request({
    url: "/order/category-money/page/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 跨店消费列表
export function getCrossStore(data) {
  return request({
    url: "/customer/account-statement/crossStore",
    method: "post",
    data: data,
  });
}

// 跨店消费导出
export function getCrossStoreDetailExport(data) {
  return request({
    url: "/customer/account-statement/crossStore/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 利润费用明细导出
export function getStoreProfitCostExport(data) {
  return request({
    url: "/order/finance/ly/store/profit/cost/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 充消比导出
export function getAccountTotalExport(query) {
  return request({
    url: "/customer/account/total/write/off/exl",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 业务数据分析导出
export function getBusinessCountExport(data) {
  return request({
    url: "/order/finance/ly/business/data/count/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 利润费用汇总导出
export function getProfitCostSumExport(data) {
  return request({
    url: "/order/finance/ly/store/profit/cost/sum/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 利润费用月对比导出
export function getProfitCostMoonExport(data) {
  return request({
    url: "/order/finance/ly/store/profit/cost/moon/contrast/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 利润率导出
export function getProfitMarginExport(data) {
  return request({
    url: "/order/finance/ly/store/profit/margin/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 城市经理报表导出
export function getProfitCityExport(data) {
  return request({
    url: "/order/finance/ly/city/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 多月充消比汇总导出
export function getAccountTotalMoonsExport(data) {
  return request({
    url: "/customer/account/total/write/off/moons/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 充卡折扣率导出
export function ChargeCardDiscountExport(data) {
  return request({
    url: "/order/finance/ly/chargeCardDiscount/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 充卡营业额占比导出
export function ChargeCardSoExport(data) {
  return request({
    url: "/order/finance/ly/chargeCardSo/exl",
    method: "post",
    data: data,
    responseType: "blob",
  });
}